from datetime import datetime
import pytz

if __name__ == '__main__':
    ts = '2025-07-23 14:18:42.252549'
    dt = datetime.strptime(ts, "%Y-%m-%d %H:%M:%S.%f")
    eastern = pytz.timezone('America/New_York')
    dt_aware = eastern.localize(dt)
    dt_utc = dt_aware.astimezone(pytz.utc)

    ts_ms = int(dt_utc.timestamp() * 1000)
    print(ts_ms)
